﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlOpenClosedDate.ascx.cs" Inherits="UserControl_ControlOpenClosedDate" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="uscMsgBox.ascx" TagName="uscMsgBox" TagPrefix="uc1" %>

<script type="text/javascript">
    function pageLoad() {
        $("#<%= btOpen.ClientID %>").click(function () {
            $.blockUI({ css: {
                border: 'none',
                padding: '15px',
                backgroundColor: '#000',
                '-webkit-border-radius': '10px',
                '-moz-border-radius': '10px',
                opacity: .5,
                color: '#fff'
            }
            });
        });

        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            $.unblockUI();
        }

    }
 </script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
     <div class="direct_container_right_titletop">
                     Mở ngày khóa sổ
                </div>
                 <hr />
                <!-- Button chuc nang-->
                <div class="direct_container_main">
                   
                </div>
                <!-- End Button chuc nang-->
                 <!-- Content main-->
                <div class="direct_container_main">
                    <div class="direct_container_form_right">
                        <table border="0" width="100%">
                            <tr>
                                <td align="right" width="10%"><p class="direct_label">Chi nhánh</p></td>
                                <td align="left" width="90%">
                                   <asp:DropDownList ID="ddlChiNhanh" runat="server" AutoPostBack="true" 
                                        onselectedindexchanged="ddlChiNhanh_SelectedIndexChanged">
                                        </asp:DropDownList>
                                </td>
                            </tr>

                            <tr>
                                <td align="right"><p class="direct_label">Ngày khóa sổ</p></td>
                                <td align="left">
                                     <asp:TextBox ID="txtDate" ReadOnly="true" CssClass="input_code" runat="server"></asp:TextBox>&nbsp;&nbsp;
                                    <asp:Button ID="btOpen" runat="server" CssClass="direct_bt_search" Text="Mở ngày khóa sổ" 
                                        onclick="btOpen_Click" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <!-- EndContent main-->
               
    </ContentTemplate>
</asp:UpdatePanel>

<uc1:uscMsgBox ID="uscMsgBox1" runat="server" />
